Skip to content

black15/dj-shop

Repository files navigation


Logo

Django E-Shop

E-Commerce Website Built With Python Django.

Request Feature

About The Project

Demo Screenshot

In this project i used the following technologies: Backend: Python Djnago (Only). Frontend: Javascript, TailwindCss.

I plan to work on another e-commerce project using deferent technologies for both Backend & Frontend (Hopefuly with a team).

Getting Started

In order for this website to work in your machine (localhost) follow these steps:

Prerequisites

  • python
  • tailwind (npm)

Installation

  1. Clone the repo
git clone https://github.com/black15/dj-shop.git
cd dj-shop/
  1. Setup a new python virtual env
python -m venv venv
source venv/bin/activate
  1. Install the required python libraries
pip install -r requirements.txt
  1. Install and create the config file for TailwindCss
npm install -D tailwindcss
npx tailwindcss init

python manage.py tailwind install
  1. Setup SQLite3
python manage.py migrate
  1. Important ! Create Stripe Account and Copy the Secret and Public Key to djshop/.env
STRIPE_SECRET_KEY='YOUR STRIPE SECRET KEY HERE'
STRIPE_PUBLISHABLE_KEY='YOUR STRIPE PUBLIC KEY HERE'
BASE_URL='http://localhost:8000/'
  1. Optional Create superuser
python manage.py createsuperuser

Usage

Launch 2 Terminals to run both django web server and tailwindcss.

Django

python manage.py runserver

Tailwind

python manage.py tailwind start

Authors

About

Online Shop App using Python Django.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published